public class HourEmployee extends First {

    private int workHours;

    public HourEmployee(String name, int workHours) {
        super(name);
        this.workHours = workHours;
    }

    @Override
    public double calcSalary() {
        return 20.8 * 8 * getWorkHours();
    }

    public int getWorkHours() {
        return workHours;
    }

    public void setWorkHours(int workHours) {
        this.workHours = workHours;
    }
}
